package com.hc.mapper;

import com.hc.domain.Comment;
import com.hc.domain.User;
import com.hc.query.CommentVO;
import com.hc.query.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: hecai
 * @date: 2021/11/9 11:17
 * @description: 
 */
@Mapper
public interface CommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    List<Comment> getAllCommentByProjId(@Param("pid") Long projId);
    /**
     * 查询多个评论 ，搜索框查找
     * @return
     */
    List<Comment> selectCommentsByCondition(CommentVO commentVO);
}